package cs.game.util;

import java.awt.image.BufferedImage;

public class Bullet extends Flyer{
	public Mine mine;
	public Bullet(BufferedImage image, Integer x, Integer y, Mine mine) {
		this.image = image;
		this.x = x;
		this.y = y;
		this.Height = image.getHeight();
		this.Weidth = image.getWidth();
		this.speed = mine.speed*2;
		this.mine = mine;
	}

	@Override
	public void stepMove() {
		this.y-=speed;
	}
	@Override   
	public boolean OutOfBounds() {
		boolean result=false;
		if(this.y<=-this.Height){
			result=true;
		}
		return result;
	}

}
